[Agent Archiving] Payables and Expense agent implementation for IAgentArchiving - #10460
[Agent Archiving] Payables and Expense agent implementation for IAgentArchiving#10460krupybalu wants to merge 7 commits into
Conversation
…gent-archiving-opt-out
83116b9
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9724257d-43d1-468b-9f97-1fb863d2fdd1
|
The changed file Knowledge: Line mapping was unavailable, so this was posted as an issue comment. 👍 useful · ❤️ especially valuable · 👎 wrong - reply with why · AL review agent v1.35.4 |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 9724257d-43d1-468b-9f97-1fb863d2fdd1
|
The changed file src/System Application/Test/Agent/src/Setup/LibraryMockAgent.codeunit.al does not follow the ..al naming pattern because the type segment is lowercase ('codeunit' instead of 'Codeunit'). Rename it to LibraryMockAgent.Codeunit.al so the filename matches codeunit 'Library Mock Agent' and stays consistent with tooling/grep expectations used across the repo. Knowledge: Line mapping was unavailable, so this was posted as an issue comment. 👍 useful · ❤️ especially valuable · 👎 wrong - reply with why · AL review agent v1.35.4 |
What & why
Honours the new
IAgentArchivinginterface, and opts Payables Agent and Expense Agent out of archiving.The Archive action is disabled on the Agent List and Agent Card for agent types that do not support archiving, and
Agent.Archiveblocks it programmatically so the guard cannot be bypassed. The check runs off the record the pages already hold, so it costs no extra read and cannot fail on an unsaved record.Payables and Expense opt out via their own
PA Agent Archiving/EA Agent Archivingcodeunits, mirroring how each app already registersIAgentTaskExecution, so they can be removed cleanly once each agent supports archiving. Both are single-instance: the setup record enforcing that is left behind by archiving, which would block creating a replacement.Behaviour is unchanged for every agent type that does not opt out.
Linked work
AB#647379
Related PRs
Cross-repo change - merge in this order: